<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="robots" content="noodp" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
        <title>《Flutter SizedOverflowBox 简介及案例》 - Lucklyの博客 - 在阅读中遇见自己</title><meta name="Description" content="早起的年轻人做的网站"><meta property="og:title" content="《Flutter SizedOverflowBox 简介及案例》" />
<meta property="og:description" content="
本文主要介绍OverflowBox 和 SizedOverflowBox 允许子控件超出父控件的边界。这个特性可以用来实现一些比较棘手的视觉效果。
" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" />
<meta property="og:image" content="https://luckly.work/logo.png"/>
<meta property="article:published_time" content="2021-07-31T21:15:48+08:00" />
<meta property="article:modified_time" content="2021-07-31T21:15:48+08:00" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://luckly.work/logo.png"/>

<meta name="twitter:title" content="《Flutter SizedOverflowBox 简介及案例》"/>
<meta name="twitter:description" content="
本文主要介绍OverflowBox 和 SizedOverflowBox 允许子控件超出父控件的边界。这个特性可以用来实现一些比较棘手的视觉效果。
"/>
<meta name="application-name" content="LoveIt">
<meta name="apple-mobile-web-app-title" content="LoveIt"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
        <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" /><link rel="prev" href="https://luckly.work/flutter%E4%B9%8Bstack%E7%94%A8%E6%B3%95%E5%B0%8F%E7%BB%93/" /><link rel="next" href="https://luckly.work/flutter%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90%E6%B5%85%E6%9E%90/" /><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.min.css"><link rel="stylesheet" href="/css/style.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.13.0/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.7.2/animate.min.css"><script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "headline": "《Flutter SizedOverflowBox 简介及案例》",
        "inLanguage": "zh-CN",
        "mainEntityOfPage": {
            "@type": "WebPage",
            "@id": "https:\/\/luckly.work\/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B\/"
        },"image": [{
                            "@type": "ImageObject",
                            "url": "https:\/\/luckly.work\/images\/Apple-Devices-Preview.png",
                            "width":  3200 ,
                            "height":  2048 
                        }],"genre": "posts","keywords": "flutter","wordcount":  933 ,
        "url": "https:\/\/luckly.work\/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B\/","datePublished": "2021-07-31T21:15:48+08:00","dateModified": "2021-07-31T21:15:48+08:00","license": "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.","publisher": {
            "@type": "Organization",
            "name": "xxxx","logo": {
                    "@type": "ImageObject",
                    "url": "https:\/\/luckly.work\/images\/avatar.png",
                    "width":  528 ,
                    "height":  560 
                }},"author": {
                "@type": "Person",
                "name": "早起的年轻人"
            },"description": ""
    }
    </script></head>
    <body header-desktop="fixed" header-mobile="auto"><script type="text/javascript">(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>

        <div id="mask"></div><div class="wrapper"><div class="logo-wrapper">
  <a href="/%20/" class="logo">Lucklyの博客 - 在阅读中遇见自己</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
      <a class="menu-item-link" href="/posts/">所有文章</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/categories/flutter/">Flutter</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/categories/read/">读书笔记</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/categories/go/">Go</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/tags/">标签</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/categories/">分类</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/about/">关于</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="https://github.com/ITmxs">Github</a>
    </li><li class="menu-item">
      <a class="menu-item-link" href="/friend/">友链</a>
    </li>
  </ul>
</nav><main class="main">
                <div class="container"><div class="toc" id="toc-auto">
            <h2 class="toc-title">目录</h2>
            <div class="toc-content" id="toc-content-auto"></div>
        </div><article class="page single"><h1 class="single-title animated flipInX">《Flutter SizedOverflowBox 简介及案例》</h1><div class="post-meta">
            <div class="post-meta-line"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>早起的年轻人</a></span>&nbsp;<span class="post-category">收录于 <a href="/categories/flutter/"><i class="far fa-folder fa-fw"></i>Flutter</a></span></div>
            <div class="post-meta-line"><i class="far fa-calendar-alt fa-fw"></i>&nbsp;<time datetime="2021-07-31">2021-07-31</time>&nbsp;<i class="fas fa-pencil-alt fa-fw"></i>&nbsp;约 933 字&nbsp;
                <i class="far fa-clock fa-fw"></i>&nbsp;预计阅读 2 分钟&nbsp;</div>
        </div><div class="featured-image"><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png"
        data-srcset="https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png, https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png 1.5x, https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png 2x"
        data-sizes="auto"
        alt="https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png"
        title="https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png" /></div><div class="details toc" id="toc-static"  kept="">
                <div class="details-summary toc-title">
                    <span>目录</span>
                    <span><i class="details-icon fas fa-angle-right"></i></span>
                </div>
                <div class="details-content toc-content" id="toc-content-static"><nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#方案一---理想的背景图">方案一 - “理想的背景图”</a></li>
        <li><a href="#方案二---聪明的边距">方案二 - “聪明的边距”</a></li>
        <li><a href="#方案三---overflowbox-和-sizedoverflowbox">方案三 - OverflowBox 和 SizedOverflowBox</a>
          <ul>
            <li><a href="#优化前">优化前</a></li>
            <li><a href="#优化后">优化后</a></li>
          </ul>
        </li>
      </ul>
    </li>
    <li><a href="#slicesizedoverflowbox-介绍">SliceSizedOverflowBox 介绍</a></li>
    <li><a href="#参考">参考</a></li>
  </ul>
</nav></div>
            </div><div class="content" id="content"><blockquote>
<p>本文主要介绍OverflowBox 和 SizedOverflowBox 允许子控件超出父控件的边界。这个特性可以用来实现一些比较棘手的视觉效果。</p>
</blockquote>
<p>设计给出如下视觉图：</p>
<p><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820301730961.jpg"
        data-srcset="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820301730961.jpg, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820301730961.jpg 1.5x, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820301730961.jpg 2x"
        data-sizes="auto"
        alt="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820301730961.jpg"
        title="-w393" /></p>
<p>初看觉得没有什么特别的，不过是7个控件平均水平分布。但仔细观察之后发现并非如此：其中一个控件(表示当天，称之A控件)的背景比较特别，超出边框范围带一点光晕效果。这个光晕背景其实比其他控件(表示非当天，称之B控件)的背景占据的空间要大。</p>
<h2 id="方案一---理想的背景图">方案一 - “理想的背景图”</h2>
<p>控件A和控件B的背景大小不一致，且要求水平方向平均分布。一种可行的方式是使用实际上大小相同、但视觉上有差异的背景图，比如控件A使用 100x100带光晕效果的背景图，控件B使用 100x100的透明背景图。可惜我们视觉未给出这种<strong>理想的背景图</strong></p>
<h2 id="方案二---聪明的边距">方案二 - “聪明的边距”</h2>
<p>既然控件A和控件B的背景大小不一致，又要求水平方向平均分布。如果没有”理想的背景图”，我们还可以想办法：</p>
<ul>
<li>让控件A和控件B大小不一致(以达到视觉上”看起来”大小一致的效果)</li>
<li>添加不同大小的边距(padding 或 margin)让它们”看起来”水平平均分布</li>
</ul>
<p>不过添加”聪明的边距”的代码会惨不忍睹，几乎没有可维护性。</p>
<h2 id="方案三---overflowbox-和-sizedoverflowbox">方案三 - OverflowBox 和 SizedOverflowBox</h2>
<p>看如何使用 SizedOverflowBox 来解决这个问题。</p>
<h3 id="优化前">优化前</h3>
<p>优化前，光晕背景图无法占满控件A，视觉效果不佳。</p>
<p><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820344976572.jpg"
        data-srcset="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820344976572.jpg, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820344976572.jpg 1.5x, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820344976572.jpg 2x"
        data-sizes="auto"
        alt="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820344976572.jpg"
        title="img" /></p>
<p>控件A代码如下：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">@override
Widget build(BuildContext context) {
  return Container(
    width: 36,
    height: 36,
    decoration: BoxDecoration(
        border: Border.all(
          width: 1,
          color: c_FFFFE1A6,
        ),
        borderRadius: BorderRadius.all(Radius.circular(3)),
        image: DecorationImage(
            image: AssetImage(_bgAwardToday), fit: BoxFit.fitHeight)),
    child: child,
    alignment: Alignment.center,
  );
}
</code></pre></td></tr></table>
</div>
</div><h3 id="优化后">优化后</h3>
<p>优化后，光晕背景图可以占满控件A，完美还原视觉图。
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820345882075.jpg"
        data-srcset="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820345882075.jpg, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820345882075.jpg 1.5x, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820345882075.jpg 2x"
        data-sizes="auto"
        alt="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820345882075.jpg"
        title="img" /></p>
<p>此外，控件A的大小为 (width=36.0, height=36.0)，与控件B的大小完全一致。由于控件A和控件B的大小一致，所以让它们水平方向平均分布的代码非常简单优雅，<code>spaceBetween</code> 即可。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,
  children: []
)
</code></pre></td></tr></table>
</div>
</div><p>控件A代码如下：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">@override
Widget build(BuildContext context) {
  return SizedOverflowBox(
    size: const Size(36.0, 36.0),
    child: Stack(alignment: Alignment.center, children: [
      Image.asset(
        _bgAwardToday,
        width: 56,
      ),
      SizedBox(
        child: child,
        width: 36,
        height: 36,
      ),
    ]),
    alignment: Alignment.center,
  );
}
</code></pre></td></tr></table>
</div>
</div><hr>
<p>以下是控件B的代码。用于对照参考。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">  @override
Widget build(BuildContext context) {
  return Container(
    width: 36,
    height: 36,
    decoration: BoxDecoration(
        border: Border.all(
          width: 1,
          color: Color(0X62FFFFFF),
        ),
        borderRadius: BorderRadius.all(Radius.circular(3)),
        image: DecorationImage(image: AssetImage(_bgAwardOthers))),
    child: child,
    alignment: Alignment.center,
  );
}
</code></pre></td></tr></table>
</div>
</div><h1 id="slicesizedoverflowbox-介绍">SliceSizedOverflowBox 介绍</h1>
<p>TODO</p>
<h1 id="参考">参考</h1>
<p>如下，蓝色矩形子控件超出了浅蓝色矩形父控件的区域。</p>
<p><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820350888457.jpg"
        data-srcset="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820350888457.jpg, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820350888457.jpg 1.5x, https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820350888457.jpg 2x"
        data-sizes="auto"
        alt="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/18/15820350888457.jpg"
        title="-w225" /></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">class SliceSizedOverflowBox extends StatelessWidget implements SliceExample {
  @override
  String get name =&gt; &#39;SliceSizedOverflowBox&#39;;

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.blue[50],
      child: SizedOverflowBox(
        size: const Size(100.0, 100.0),
        alignment: AlignmentDirectional.bottomStart,
        child: Container(height: 50.0, width: 150.0, color: Colors.blue,),
      ),
    );
  }
}
</code></pre></td></tr></table>
</div>
</div><ul>
<li><a href="https://api.flutter.dev/flutter/widgets/SizedOverflowBox-class.html" target="_blank" rel="noopener noreffer">SizedOverflowBox class - widgets library - Dart API</a></li>
<li><a href="https://github.com/blankapp/flutter-widget-livebook/blob/master/uiexplorer/lib/views/slice_sized_overflow_box/slice_sized_overflow_box.dart" target="_blank" rel="noopener noreffer">flutter-widget-livebook/slice_sized_overflow_box.dart at master · blankapp/flutter-widget-livebook</a></li>
</ul></div><div class="post-footer" id="post-footer">
    <div class="post-info">
        <div class="post-info-line">
            <div class="post-info-mod">
                <span>更新于 2021-07-31</span>
            </div>
            <div class="post-info-license"></div>
        </div>
        <div class="post-info-line">
            <div class="post-info-md"></div>
            <div class="post-info-share">
                <span><a href="javascript:void(0);" title="分享到 Twitter" data-sharer="twitter" data-url="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" data-title="《Flutter SizedOverflowBox 简介及案例》" data-hashtags="flutter"><i class="fab fa-twitter fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Facebook" data-sharer="facebook" data-url="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" data-hashtag="flutter"><i class="fab fa-facebook-square fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Hacker News" data-sharer="hackernews" data-url="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" data-title="《Flutter SizedOverflowBox 简介及案例》"><i class="fab fa-hacker-news fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Line" data-sharer="line" data-url="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" data-title="《Flutter SizedOverflowBox 简介及案例》"><i data-svg-src="https://cdn.jsdelivr.net/npm/simple-icons@2.14.0/icons/line.svg"></i></a><a href="javascript:void(0);" title="分享到 微博" data-sharer="weibo" data-url="https://luckly.work/flutter-sizedoverflowbox-%E7%AE%80%E4%BB%8B%E5%8F%8A%E6%A1%88%E4%BE%8B/" data-title="《Flutter SizedOverflowBox 简介及案例》" data-image="https://luckly007.oss-cn-beijing.aliyuncs.com/img/90c6cc12-742e-4c9f-b318-b912f163b8d0.png"><i class="fab fa-weibo fa-fw"></i></a></span>
            </div>
        </div>
    </div>

    <div class="post-info-more">
        <section class="post-tags"><i class="fas fa-tags fa-fw"></i>&nbsp;<a href="/tags/flutter/">flutter</a></section>
        <section>
            <span><a href="javascript:void(0);" onclick="window.history.back();">返回</a></span>&nbsp;|&nbsp;<span><a href="/">主页</a></span>
        </section>
    </div>

    <div class="post-nav"><a href="/flutter%E4%B9%8Bstack%E7%94%A8%E6%B3%95%E5%B0%8F%E7%BB%93/" class="prev" rel="prev" title="《Flutter之Stack用法小结》"><i class="fas fa-angle-left fa-fw"></i>《Flutter之Stack用法小结》</a>
            <a href="/flutter%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90%E6%B5%85%E6%9E%90/" class="next" rel="next" title="《Flutter应用集成浅析》">《Flutter应用集成浅析》<i class="fas fa-angle-right fa-fw"></i></a></div>
</div>
</article></div>
            </main><footer class="footer">
        <div class="footer-container"><div class="footer-line">由 <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.79.1">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt 0.2.10"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a>
                </div><div class="footer-line"><i class="far fa-copyright fa-fw"></i><span itemprop="copyrightYear">2021</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="/" target="_blank">早起的年轻人</a></span>&nbsp;|&nbsp;<span class="license"><a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a></span></div>
        </div>
    </footer></div>

        <div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="回到顶部">
                <i class="fas fa-arrow-up fa-fw"></i>
            </a><a href="#" id="view-comments" class="fixed-button" title="查看评论">
                <i class="fas fa-comment fa-fw"></i>
            </a>
        </div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css"><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/smooth-scroll@16.1.3/dist/smooth-scroll.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/autocomplete.js@0.37.1/dist/autocomplete.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/algoliasearch@4.2.0/dist/algoliasearch-lite.umd.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sharer.js@0.4.0/sharer.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script><script type="text/javascript">window.config={"code":{"copyTitle":"复制到剪贴板","maxShownLines":10},"comment":{},"cookieconsent":{"content":{"dismiss":"同意","link":"了解更多","message":"本网站使用 Cookies 来改善您的浏览体验."},"enable":true,"palette":{"button":{"background":"#f0f0f0"},"popup":{"background":"#1aa3ff"}},"theme":"edgeless"},"search":{"algoliaAppID":"PASDMWALPK","algoliaIndex":"index.zh-cn","algoliaSearchKey":"b42948e51daaa93df92381c8e2ac0f93","highlightTag":"em","maxResultLength":10,"noResultsFound":"没有找到结果","snippetLength":50,"type":"algolia"}};</script><script type="text/javascript" src="/js/theme.min.js"></script></body>
</html>
